<?php

	/*$sysMail = $getMail['system_mail'];

	$conMail = $getMail['contact_mail'];

	$persMail = $getMail['promotional_mail'];
*/

?>

<table width="50%" cellspacing="5">
	<span class=".arial-12pt darkGray" style=" margin-left: 43px;">Select the type of mails that you wish to receive</span>

	<form method="POST" action="emailSettingsProcess.php">

		<tr align="left"><td >
			
		</td></tr>

		<tr>

			<td><input type="hidden" name="user_id" id="user_id" value="<?php echo $row['user_id'];?>"></td>

			<td class=".arial-10pt darkGray" valign="top">Subscribe</td>

			<td class=".arial-10pt darkGray" valign="top">Unsubscribe</td>

		</tr>

		<tr>

			<td  style="line-height: 20px;"><span class="font13 darkGray">1. System mail:</span><br/>
				<ul class="arial-10pt darkGray" style="list-style-type:none; margin-left: -20px;">
				<li>Feature updates</li>
				<li>New listing notifications</li>
				<li>Account activity</li>
				<li>News and developments at Hoonur</li></ul>

			</td>
			
			<?php
				if ($sysMail == 'sysMailSub')
				{
					$sysMail1 = 'sysMailSub';
			?>
			<td valign="top"><input type="radio" name="sysMail" id="sysMailSub" value="sysMailSub" CHECKED></td>

			<td valign="top"><input type="radio" name="sysMail" id="sysMailUnsub" value="sysMailUnsub"></td>

			<?php 
				}
				else if($sysMail =='sysMailUnsub')
				{
					$sysMail1 = 'sysMailUnsub';
			?>
			<td valign="top"><input type="radio" name="sysMail" id="sysMailSub" value="sysMailSub"></td>

			<td valign="top"><input type="radio" name="sysMail" id="sysMailUnsub" value="sysMailUnsub" CHECKED></td>

			<?php 
				}
			?>
			
	
		</tr>

		<tr>

			<td><span class="font13 darkGray">2. Contact mail:</span><br/>

				<span class="arial-10pt darkGray" style="margin-left: 20px; line-height: 25px;">Mails from users and visitors</span>

			</td>
			<?php
				if ($conMail == 'conMailSub')
				{
			?>

			<td valign="top"><input type="radio" name="conMail" id="conMailSub" value="conMailSub" CHECKED></td>

			<td valign="top"><input type="radio" name="conMail" id="conMailUnsub" value="conMailUnsub"></td>

			<?php 
				}
				else if($conMail =='conMailUnsub')
				{
			?>

			<td valign="top"><input type="radio" name="conMail" id="conMailSub" value="conMailSub"></td>

			<td valign="top"><input type="radio" name="conMail" id="conMailUnsub" value="conMailUnsub" CHECKED></td>

			<?php 
				}
			?>


		</tr>

		<tr>

			<td><span class="font13 darkGray">3. Promotional emails:</span><br/>

				<span class="arial-10pt darkGray" style="margin-left: 20px; line-height: 25px;">From partners, affiliates and clients</span>

			</td>

			<?php
				if ($persMail == 'persMailSub')
				{
			?>

			<td valign="top"><input type="radio" name="persMail" id="persMailSub" value="persMailSub" CHECKED></td>

			<td valign="top"><input type="radio" name="persMail" id="persMailUnsub" value="persMailUnsub"></td>

			<?php 
				}
				else if($persMail == 'persMailUnsub')
				{
			?>

			<td valign="top"><input type="radio" name="persMail" id="persMailSub" value="persMailSub"></td>

			<td valign="top"><input type="radio" name="persMail" id="persMailUnsub" value="persMailUnsub" CHECKED></td>

			<?php 
				}
			?>



		</tr>

		<tr>

			<td>&nbsp;</td>

			<td align="right">
			
				<input type="submit" value="" name="cUnmSubmit" id="cUnmSubmit">

			</td>

			<td>
			
				<input type="reset" name="reset" value="Reset" class="textblue font12" style="background:#ffffff none no-repeat 0 0; border: none;">

			</td>

		</tr>

		
	</form>

</table>
